package com.tmt.im.wallet.config.beans;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.math.BigDecimal;

/**
 * @Description TODO
 * @Author wuyi
 * @Date 2024/9/2 16:06
 * @Version 1.0
 **/
@Getter
@Setter
@ConfigurationProperties(prefix = "red-package-rules")
public class RedPackageRuleProperties {

    @Schema(name = "maxAmount", description = "默认红包的最大额度, 单位：分")
    private Long maxAmount;

    @Schema(name = "minAmount", description = "默认红包的最小额度, 单位：分")
    private Long minAmount;

    @Schema(name = "maxSplitCount", description = "默认红包的最大领取人数")
    private int maxSplitCount;

    @Schema(name = "expireMinutes", description = "默认红包的过期时间，单位：小时")
    private Integer expireMinutes;

    @Schema(name = "personal", description = "个人红包定制规则")
    private RedPackageRule personal;

    @Schema(name = "exclusive", description = "专属红包定制规则")
    private RedPackageRule exclusive;

    @Schema(name = "lucky", description = "手气红包定制规则")
    private RedPackageRule lucky;

}
